import request from '@/plugins/axios'

// 仪表盘获取账户信息
export function dAccountInfoApi() {
  return request({
    url: '/accountInfo',
    method: 'post'
  })
}

// 获取仪表盘推荐信息
export function recommendInfoApi() {
  return request({
    url: '/recommendInfo',
    method: 'post'
  })
}

// 获取注册人数一周的变化
export function registerWeeklyChangeApi() {
  return request({
    url: '/sdaoInfo',
    method: 'get'
  })
}

// 提现前调用后端接口
export function preWithdrawApi() {
  return request({
    url: '/preWithdraw',
    method: 'post'
  })
}

// 提现后调用后端接口
export function withdrawApi(data) {
  return request({
    url: '/withdraw',
    method: 'post',
    data
  })
}

// 查询提案
export function proposalApi() {
  return request({
    url: '/proposalInfo',
    method: 'post'
  })
}

// 查询表现
export function performanceApi() {
  return request({
    url: '/performanceInfo',
    method: 'post'
  })
}

// 查询团队列表
export function getTeamList(data) {
  return request({
    url: '/childList',
    method: 'post',
    data
  })
}

// 账户详情
export function getAccountDetail() {
  return request({
    url: '/accountDetail',
    method: 'post',
  })
}
